﻿using System.Diagnostics;
using System.IO;
using System.Text;

namespace ZhukBlogLinqExamples
{
    /// <summary>
    /// Tracer for LINQ to SharePoint queries
    /// </summary>
    public class ZhukBlogTracer : TextWriter
    {
        public override Encoding Encoding
        {
            get { return Encoding.UTF8; }
        }

        public override void WriteLine(string value)
        {
            Debug.WriteLine(string.Empty);
            Debug.WriteLine("---------------------------------------------------------");
            Debug.WriteLine(value);
        }

        public override void Flush()
        {
            Debug.Flush();
        }
    }
}
